import React from "react";
import "./index.scss";
import { Button } from "antd";
import { useNavigate } from "react-router-dom";

function NotFount() {
  const navigate = useNavigate();
  const getOpen = () => {
    navigate("/");
  };

  return (
    <div className="not_404">
      <Button type="primary" onClick={getOpen}>
        返回首页
      </Button>
    </div>
  );
}

export default NotFount;
